// number_93.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	string s[1000];
    int i=0;
    ifstream input;
    ofstream output;
    input.open("input.txt");
    output.open("output.txt");
    char e;
    while (!(input.eof())) {
		input>>e; 
        if (!(((e>='a')&&(e<='z'))||((e>='A')&&(e<='Z')))) {
			s[i]=s[i]+e; 
			continue;
		} 
		i+=1;
	}

    int max=0, t=0;
    for (int j=0; j<i; ++j)
	    if (max<s[j].length()){
			max=s[j].length(); 
			t=j;
		}

	output<<s[t]<<endl;
	return 0;
}

